import request from '@/utils/request'

export function fetchApplicationList(data) {
  return request({
    url: '/cloud-system/getApplicationList',
    method: 'post',
    data
  })
}

export function fetchApplicationOne(data) {
  return request({
    url: '/cloud-system/getOneApplicationDetail',
    method: 'post',
    data
  })
}

export function createApplication(data) {
  return request({
    url: '/cloud-system/createOneApplication',
    method: 'post',
    data
  })
}

export function updateApplication(data) {
  return request({
    url: '/cloud-system/updateOneApplication',
    method: 'post',
    data
  })
}

export function deleteApplication(data) {
  return request({
    url: '/cloud-system/deleteOneApplication',
    method: 'post',
    data
  })
}
export function batchDeleteApplication(data) {
  return request({
    url: '/cloud-system/batchDeleteApplication',
    method: 'post',
    data
  })
}

export function lockApplication(data) {
  return request({
    url: '/cloud-system/lockOneApplication',
    method: 'post',
    data
  })
}

export function unlockApplication(data) {
  return request({
    url: '/cloud-system/unlockOneApplication',
    method: 'post',
    data
  })
}

export function batchLockApplication(data) {
  return request({
    url: '/cloud-system/batchLockApplication',
    method: 'post',
    data
  })
}

export function batchUnLockApplication(data) {
  return request({
    url: '/cloud-system/batchUnLockApplication',
    method: 'post',
    data
  })
}
